﻿<!--#include file="utf-8.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="seeion.asp"-->
<!--#include file="page.asp"-->
<%
'response.write (request("t"))
'response.write (request("id"))
'response.end 

if request("t")="line" then
set rs=server.createobject("adodb.recordset") 
exec="select * from Traffic_Stat where id="&request("id")&"" 
rs.open exec,conn,2,3
if not rs.eof then
rs.delete
end if
rs.close
set rs = nothing
response.write "<script>alert('删除成功!')</script>"
response.write "<script>window.location.href='Traffic_stat.asp'</script>"
end if 

'response.write (request("t"))
'response.write (request("id"))
'response.end 

if request("t")="date" then
set rs=server.createobject("adodb.recordset") 
exec="select * from Traffic_Stat where datetime like '%"&request("id")&"%'" 
rs.open exec,conn,2,3
do while not rs.eof
rs.delete
rs.movenext
loop
rs.close
set rs = nothing
response.write "<script>alert('删除成功!')</script>"
response.write "<script>window.location.href='Manage_Traffic_Stat.asp'</script>"
end if 



%> 